﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

class Valhalla : MotherShip
{
    public AudioSource m_RageAudio;
    public override bool LaunchSkill()
    {
        if (!base.LaunchSkill())
            return false;

        m_RageAudio.Play();
        for (int i = 0; i < m_WeaponSlots.Count; ++i)
        {
            var weaponSlot = m_WeaponSlots[i].GetComponent<WeaponSlot>();
            UAV uav = weaponSlot.m_Weapon as UAV;
            if (uav != null)
                uav.SetSelfDestruct(true);
        }
        return true;
    }
}